# 百鸡百钱
def num(n):
    for i in range(1, n):
        for j in range(1, n):
            k = 100 - i - j
            if k > 0:  # k 需要大于 0
                if 5*i + 3*j + 1/3*k == 100:
                    return i, j, k
            else:
                break  # k 小于等于 0，跳出内层循环
    return None

result = num(100)
if result:
    print("i =", result[0], ", j =", result[1], ", k =", result[2])
else:
    print("找不到符合条件的值")